const { createClient } = require("webdav");

const client = createClient(
    "https://almondcloud.cn/dav",
    {
        username: "3bBoqL1Tr0bnUpva@login.qq.com",
        password: "RBYMbmKwcVKA3m4wrXIBz9BkhRnPApR7"
    }
);
async function getDirectoryContents(){
    return await client.getDirectoryContents("/");
}
async function run(){
    console.log(await getDirectoryContents())
    console.log(client.getFileDownloadLink("/aaaa.js"))
}

run()